package com.hi.cdi.versioning.domain;

import java.util.Date;

import com.hi.cdi.versioning.utils.Sequence;

public class Book_History {

	public static Book_History prepareNewHistoryRecord(Book book) {
		Book_History history = new Book_History();
		history.setBook(Book.copyOf(book));
		history.setRevisionId(Sequence.next());
		history.setWhen(new Date());
		return history;
	}

}
